#================================================================
#	This Makefile creates Triangulation_2.so which can be imported via Python
#================================================================

include ../makefile.inc

Triangulation_2_module = Triangulations_2

OBJ_of_Triangulation_2_module = Py_Tools.o \
	Py_Triangulation_2.o \
	Triangulations_2_module.o \
	Py_Delaunay_triangulation_2.o \
	Py_Constrained_triangulation_2.o \
	Py_Constrained_Delaunay_triangulation_2.o \
	Py_Constrained_triangulation_plus_2.o	
# 	Py_Regular_triangulation_2.o
	
all:$(OBJ_of_Triangulation_2_module) 
	@echo 'Creating a Python modules'
	@g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Triangulation_2_module)  -o $(Triangulation_2_module).so
	@echo '$(Triangulation_2_module) module is created in ./$(Triangulation_2_module)/$(Triangulation_2_module).so'

.cpp.o:
	@echo 'Compiling $<'
	@g++ $(CGAL_PYTHON_CXXFLAGS) -c $<

clean:
	@rm -f *.so
	@rm -f $(OBJ_of_Triangulation_2_module) *.*~  *~ 
